import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import 'element-plus/dist/index.css'
import axios from './utils/axios'
import { Icon } from '@iconify/vue';
import { createPinia } from 'pinia'
import piniaPersist from 'pinia-plugin-persistedstate'

const app = createApp(App)
app.provide('$axios', axios);
app.component('Icon', Icon);

const pinia = createPinia();
pinia.use(piniaPersist)

app.use(pinia)
app.use(router)

app.mount('#app')
